package ma.ensias.healthme;

import ma.ensias.healthme.admin.GestActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class LogOnActivity extends Activity {
	Button logon;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.log_on);
		
		logon=(Button)findViewById(R.id.logOn);
		
		logon.setOnClickListener(new LogOnListener(this));
		
	}

}
class LogOnListener implements OnClickListener{

	Activity ac;
	public LogOnListener(Activity ac){
		this.ac=ac;
	}
	@Override
	public void onClick(View arg0) {
		
		//Toast.makeText(ac, "Mot de passe ou login incorrect!", Toast.LENGTH_SHORT).show();
		Intent i=new Intent(ac,GestActivity.class);
		ac.startActivity(i);
	}

	
}